﻿define('api/enterpriseService', [], function() {
	return {
		getEnterprisesCountByArea:function(callback){
			ajaxProcess({
	            url : '/pls/gis/point/city/pointquantity',
	            requestType : 'POST',
	            data : {},
	            successHandle : function(data) {
	            	if(callback && typeof callback === 'function') {
	            		callback(data);
	            	}
	            }
	        });
		},
		
		getEnterprisesCountByTrade:function(callback){
			ajaxProcess({
	            url : '/pls/gis/point/tradecode/pointquantity',
	            requestType : 'POST',
	            data : {},
	            successHandle : function(data) {
	            	if(callback && typeof callback === 'function') {
	            		callback(data);
	            	}
	            }
	        });
		},
		
		getEnterprisesCountByControlLevel:function(callback){
			ajaxProcess({
	            url : '/pls/gis/point/controllevel/pointquantity',
	            requestType : 'POST',
	            data : {},
	            successHandle : function(data) {
	            	if(callback && typeof callback === 'function') {
	            		callback(data);
	            	}
	            }
	        });
		},
	};
	
});
